
#ifndef _OLED_H_
#define _OLED_H_

#include "main.h"
#include "iic.h"
#include "zk.h"
#include "string.h"

extern uint8_t OLED_RAM[8][128];




void OLED_Init();


void OLED_Str(uint8_t* str,uint8_t x,uint8_t y);

void OLED_Num(uint8_t* num,uint8_t x,uint8_t y);

void OLED_WrCmd(uint8_t cmd);

void OLED_WrData(uint8_t data);

void OLED_Refresh();

void OLED_Clr();

void OLED_LightScreen();

void OLED_RefreshRAM(uint8_t* str,uint8_t h,uint8_t l);

void OLED_Chinese(uint8_t* str,uint8_t num,uint8_t h,uint8_t l);

void OLED_UpData();

void OLED_Picture(uint8_t* pic,uint8_t height,uint8_t width,uint8_t h,uint8_t l);

uint8_t OLED_DataLen(uint8_t* data);

#endif